package projectmanager

import java.util.Date;

class Task {
	
		String description
		String phase
		Date date
		float hours
	
	
		static belongsTo = [user : User, project: Project, requirement : Requirement]
		
		
    static constraints = {
		
		description(blank:false)
		project(blank:false)
		user(blank:false)
		phase(blank:false, inList:["Project Management","Requirements Analysis","Design","Implementation","Testing"])
		requirement(blank:false)
		date(blank:false)
		hours(blank:false)
    }
}
